"""
静态方法引入
"""
list01 = [
    ["00", "01", "02", "03"],
    ["10", "11", "12", "13"],
    ["20", "21", "22", "23"],
    ["30", "31", "32", "3 3"],

]


class Vector2:
    """"
    二维向量类
    可以表示位置、方向
    """

    def __init__(self, x, y):
        self.x = x
        self.y = y


v01 = Vector2(0, 0)


def left():  # 函数:表示左边方向
    return Vector2(0, -1)


def right():  # 函数:表示右边方向
    return Vector2(0, 1)


# 作用：位置+方向
pos01 = Vector2(1, 2)
l01 = left()
pos01.x += l01.x
pos01.y += l01.y
print(pos01.x, pos01.y)
